package cn.com.fig;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 应用启动入口
 * @author liuwencheng
 *The @SpringBootApplication annotation is equivalent to using @Configuration, @EnableAutoConfiguration and @ComponentScan with their default attributes:
 *The @ImportResource 如果确有需要引入xml形式的spring配置文件，可以使用@ImportResource 注解
 */
@SpringBootApplication
@MapperScan("cn.com.fig.dao")
@ServletComponentScan
//@ImportResource(value = { "META-INF/spring/dubbo-demo-consumer.xml" })
public class Application {

    public static void main(String[] args) {
//    	启动应用程序
        SpringApplication.run(Application.class, args);
    }

}
